package com.aaa.doctor;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: his-open-parent
 * @description:
 * @author: 闫克起2
 * @create: 2023-03-20 11:07
 **/
@SpringBootApplication
@ComponentScan(basePackages = {"com.aaa.config","com.aaa.doctor"}) //写了该注解 那么默认的包扫就会失效
@MapperScan(basePackages = {"com.aaa.doctor.dao"})
@EnableTransactionManagement
@EnableFeignClients
public class DoctorApp {
    public static void main(String[] args) {
        SpringApplication.run(DoctorApp.class,args);
    }
}
